package com.glory.dgcpcpda.entity;

import java.util.ArrayList;

public class StationDtoEntity {
    private ArrayList<String> Station;
    private ArrayList<ToolWork> Works;

    public ArrayList<String> getStation() {
        if (Station == null) {
            return new ArrayList<>();
        }
        return Station;
    }

    public void setStation(ArrayList<String> station) {
        Station = station;
    }

    public ArrayList<ToolWork> getWorks() {
        if (Works == null) {
            return new ArrayList<>();
        }
        return Works;
    }

    public void setWorks(ArrayList<ToolWork> works) {
        Works = works;
    }

    public class ToolWork {
        private String STATION_NAME;
        private String TOOL_CODE;
        private boolean IS_UP;
        private String UP_TIME;
        private String UP_USER;

        public String getSTATION_NAME() {
            return STATION_NAME == null ? "" : STATION_NAME;
        }

        public void setSTATION_NAME(String STATION_NAME) {
            this.STATION_NAME = STATION_NAME;
        }

        public String getTOOL_CODE() {
            return TOOL_CODE == null ? "" : TOOL_CODE;
        }

        public void setTOOL_CODE(String TOOL_CODE) {
            this.TOOL_CODE = TOOL_CODE;
        }

        public String getIS_UP() {
            return IS_UP?"上机":"下机";
        }

        public void setIS_UP(boolean IS_UP) {
            this.IS_UP = IS_UP;
        }

        public String getUP_TIME() {
            return UP_TIME == null ? "" : UP_TIME;
        }

        public void setUP_TIME(String UP_TIME) {
            this.UP_TIME = UP_TIME;
        }

        public String getUP_USER() {
            return UP_USER == null ? "" : UP_USER;
        }

        public void setUP_USER(String UP_USER) {
            this.UP_USER = UP_USER;
        }
    }
}
